﻿using UnityEngine;
using System.Collections;

public class BM_Andy_collectable : BM_CollectableToy {

	public override void Awake ()
	{
		base.Awake ();

		m_bSelectable = false;
		RealObject.SetActive(false);
		selectCollider.gameObject.SetActive(false);
	}
	
	public override void Update ()
	{
		base.Update ();
		
		
		BM_BaseMessage rBaseMsg = m_rMessageHandler.ReceivedMessageWithID(ActivationMessage);
		if(rBaseMsg != null)
		{
			RealObject.SetActive(true);
			m_bSelectable = true;
			selectCollider.gameObject.SetActive(true);
		}
	}
}
